/*
+--------------------------------------------------------------------------
|   Mblog [#RELEASE_VERSION#]
|   ========================================
|   Copyright (c) 2014, 2015 mtons. All Rights Reserved
|   http://www.mtons.com
|
+---------------------------------------------------------------------------
*/
package com.hefei.blog.admin.persist.dao;

import java.util.List;
import java.util.Set;

import com.hefei.blog.admin.persist.entity.AdminPO;
import com.hefei.blog.base.paging.Paging;
import com.hefei.blog.core.persist.base.BaseRepository;

public interface AdminDao extends BaseRepository<AdminPO> {
    AdminPO getByUsername(String username);

    AdminPO getByEmail(String email);
    
    List<AdminPO> getHotUserByfans(int maxResults);
    
    List<AdminPO> paging(Paging paging, String key);

    List<AdminPO> findByIds(Set<Long> ids);

    void identityPost(List<Long> userIds, boolean identity);

    void identityComment(List<Long> userIds, boolean identity);

    void identityFollow(List<Long> userIds, boolean identity);

    void identityFans(List<Long> userIds, boolean identity);

    void identityFavors(List<Long> userIds, boolean identity);

	
}
